formatting fixes, explanatory comment in send-entity-body-document
diff --git a/XMLHttpRequest/send-entity-body-document.htm b/XMLHttpRequest/send-entity-body-document.htm index 752f9cb..12bcd7e 100644 --- a/XMLHttpRequest/send-entity-body-document.htm +++ b/XMLHttpRequest/send-entity-body-document.htm
@@ -28,7 +28,9 @@ assert_equals(client.getResponseHeader('X-Request-Content-Type'), exp.contentType, 'document should be serialized and sent as '+exp.contentType+' (TEST#'+number+')') // The indexOf() assertation will overlook some stuff, i.e. XML prologues that shouldn't be there (looking at you, Presto). // However, arguably these things have little to do with the XHR functionality we're testing. - if(exp.responseText)assert_true(client.responseText.indexOf(exp.responseText) != -1) + if(exp.responseText){ // This test does not want to assert anything about what markup a standalone IMG should be wrapped in. Hence the GIF test lacks a responseText expectation. + assert_true(client.responseText.indexOf(exp.responseText) != -1); + } assert_equals(client.responseXML, null) }) }